package cloudEntity.enumation;

import lombok.Getter;

/**
 * @program: Smart School
 * @ClassName EducationDetailsTypeEnum
 * @description:
 * @author: 陈智博
 * @create: 2025-05-20 11:37
 * @Version 1.0
 **/
@Getter
public enum EducationDetailsTypeEnum {

    ADD("加分",1),
    SUB("扣分",2),
    DefaultNull("暂无",127);

    private final String sysEducationDetailsTypeName;
    private final Integer sysEducationDetailsType;


    EducationDetailsTypeEnum(String sysEducationDetailsTypeName, Integer sysEducationDetailsType) {
        this.sysEducationDetailsTypeName = sysEducationDetailsTypeName;
        this.sysEducationDetailsType = sysEducationDetailsType;
    }


    public static String getDescriptionByValue(Integer value) {
        for (EducationDetailsTypeEnum status : EducationDetailsTypeEnum.values()) {
            if (status.getSysEducationDetailsType().equals(value)) {
                return status.getSysEducationDetailsTypeName();
            }
        }
        return null; // 或者抛出异常，根据需求而定
    }

}
